package com.mall.sun.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * description: 商品传输类 <br>
 * date: 2021/12/6 17:41 <br>
 * author: ztz <br>
 * version: 1.0 <br>
 */
@Data
public class GoodDTO {
    private Integer gId;
    private String gName;
    private String gcName;
    private String introduction;
    private Double sPrice;
    private Double discount;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date pubTime;
    private Integer gamount;
    private Integer scount;
}
